package cn.infinite.security.configuration;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;

@Data
@ConfigurationProperties("spring.security.security-basic.sms-authenticate")
public class SmsConfigurerProperties {

    /**
     * 短信认证相关请求的目录
     */
    private String scopePath = "/sms-auth";

    /**
     * 认证成功后跳转url
     */
    private String authenticateSuccessUrl;

    /**
     * 下发短信验证码端点
     */
    private String sendSmsCodeEndPoint;

    /**
     * 验证短信验证码的 URL 端点
     */
    private String validateSmsCodeEndPoint;

    /**
     * 连续多少次认证失败后需要需要图片验证码
     * 设置为 -1 时 ，永远不需要图片验证码
     */
    private Integer imageCheckCodeWhenMaxFailCount = -1;

    private String checkCodeParamName = "smsCode";

    private String mobileParamName = "mobile";

    private String imageCheckCodeParamName = "imgCheckCode";

}
